package wheres.mijao;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.RadioButton;

public class MapaRanking extends Activity{
	
	ImageButton voltar;
	RadioButton rankingRio, rankingSalvador, rankingOlinda;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.maparanking);
		
		voltar = (ImageButton) findViewById(R.id.voltar);
		
		rankingOlinda = (RadioButton) findViewById(R.id.rankingOlinda);
		rankingSalvador = (RadioButton) findViewById(R.id.rankingSalvador);
		rankingRio = (RadioButton) findViewById(R.id.rankingRio);
		
		rankingOlinda.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent troca = new Intent(MapaRanking.this, OlindaRanking.class );
				MapaRanking.this.startActivity(troca);
				MapaRanking.this.finish();
				
			}
		});
		
		rankingSalvador.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent troca = new Intent(MapaRanking.this, SalvadorRanking.class );
				MapaRanking.this.startActivity(troca);
				MapaRanking.this.finish();
				
			}
		});
		
		rankingRio.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent troca = new Intent(MapaRanking.this, RioRanking.class );
				MapaRanking.this.startActivity(troca);
				MapaRanking.this.finish();
			}
		});
		
		
		voltar.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent troca = new Intent(MapaRanking.this, WheresMijaoActivity.class);
				MapaRanking.this.startActivity(troca);
				MapaRanking.this.finish();
				
			}
		});
	
	}
	
}
